package es.fogondelarte.domain

class Client {
	
	Integer id
	String name
	String surname
	String phone
	String email
	User user
	static hasMany = [visitList: Visit]

    static constraints = {
		name blank:false
		surname blank:false
		email nullable:true
		phone nullable:true
    }
	
	static mapping = {
		id generator:'identity'
	}
}
